package com.mlnx.work.controller;


import com.mlnx.work.entity.Right;
import com.mlnx.work.pojo.form.NoneFilterForm;
import com.mlnx.work.pojo.form.RightForm;
import com.mlnx.work.service.RightService;

import org.shan.spring.base.CurdBaseController;
import org.shan.spring.base.annotations.SysLog;
import org.shan.spring.mybatis.service.ICurdService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import io.swagger.annotations.Api;

/**
 * Created by amanda.shan on 2020/5/19.
 */
@SysLog(title = "用户权限")
@Api(value = "用户权限接口", tags = {"用户权限接口"})
@RestController
@RequestMapping("/right")
public class RightController extends CurdBaseController<Right, RightForm, RightForm, NoneFilterForm> {

    @Autowired
    private RightService rightService;

    @Override
    public ICurdService getService() {
        return rightService;
    }

    @Override
    public Right newInstance(Integer id) {
        Right right = new Right();
        right.setId(id);
        return right;
    }

}
